import '../css/giftbag.scss'
import '../css/common/header.scss'
import '../css/common/footer.scss'

if (module.hot) { module.hot.accept() } // 实现热更新

setTimeout(()=>{
    console.log('index');
}, 1000);

// 鼠标hvoer显示图片
(function () {
    var $gift = $('.h5-right .hot-num ul li');

    $gift.hover(function () {
        $(this).siblings().removeClass('active');
        $(this).addClass('active');
    })
})();
// 鼠标hvoer显示图片
(function () {
    var $gift = $('.h5-right .hot-game ul li');

    $gift.hover(function () {
        $(this).siblings().removeClass('active');
        $(this).addClass('active');
    })
})();


var layer, laypage;
(function () {
    layui.use(['laypage'],function () {
        laypage=layui.laypage;

        $(function () {
            //layer.msg("消息框")
            laypage.render({
                elem: 'list_page',
                count: 500,
                curr: location.hash.replace('#!fenye=', ''), //获取hash值为fenye的当前页
                hash: 'fenye' //自定义hash值
            });
        });
    })
})();

